//
//  LDPayTableViewCell.m
//  dmao-customer
//
//  Created by macbook on 2017/10/18.
//  Copyright © 2017年 秦慕乔. All rights reserved.
//

#import "LDPayTableViewCell.h"

@implementation LDPayTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (IBAction)SelectClick:(UIButton *)sender {
    
    if (_chooseBtn.selected) {
        self.remove();
    }else{
        
        self.select();
    }
    [self changeUi:_chooseBtn.selected];
}

- (void)changeUi:(BOOL)selected
{
    if (selected) {
        [_SelectImg setImage:[UIImage imageNamed:@"LDPaySelect"]];
        _chooseBtn.selected = NO;
        
    }else{
        [_SelectImg setImage:[UIImage imageNamed:@"LDPaySelected"]];
        _chooseBtn.selected = YES;
        
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
